package com.smart.model.dtomapper;

import com.smart.model.domain.ProjectWeeklyItemDO;
import com.smart.model.request.ProjectItemUpdateRequest;
import com.smart.model.request.ProjectWeeklyItemRequest;
import com.smart.model.vo.ProjectWeeklyItemVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ProjectWeeklyItemDtoMapper {

    ProjectWeeklyItemDtoMapper INSTANCE = Mappers.getMapper(ProjectWeeklyItemDtoMapper.class);

    /**
    * DO to VO
    * @param projectWeeklyItemDO
    * @return
    */
    ProjectWeeklyItemVO do2VO(ProjectWeeklyItemDO projectWeeklyItemDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ProjectWeeklyItemDO request2DO(ProjectWeeklyItemRequest request);

    /**
     * request to DO
     * @param request
     * @return
     */
    ProjectWeeklyItemDO request2DO(ProjectItemUpdateRequest request);
}
